import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";

export class CreateUserDto { }


export class SelectUserDto {
    @ApiProperty({
        description: '页号',
    })
    @IsNotEmpty()
    page: number;
    @ApiProperty({
        description: '页码',
    })
    @IsNotEmpty()
    pageSize: number;
    @ApiProperty({
        description: '账号',
    })
    username: string;
    @ApiProperty({
        description: '邮箱',
    })
    email: string;
    @ApiProperty({
        description: '电话号码',
    })
    phone: string;
    @ApiProperty({
        description: '昵称',
    })
    nickName: string
}